
<%@ page import="org.model.SugarCase" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'sugarCase.label', default: 'SugarCase')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-sugarCase" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-sugarCase" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list sugarCase">
			
				<g:if test="${sugarCaseInstance?.description}">
				<li class="fieldcontain">
					<span id="description-label" class="property-label"><g:message code="sugarCase.description.label" default="Description" /></span>
					
						<span class="property-value" aria-labelledby="description-label"><g:fieldValue bean="${sugarCaseInstance}" field="description"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.sugarStatus}">
				<li class="fieldcontain">
					<span id="sugarStatus-label" class="property-label"><g:message code="sugarCase.sugarStatus.label" default="Sugar Status" /></span>
					
						<span class="property-value" aria-labelledby="sugarStatus-label"><g:fieldValue bean="${sugarCaseInstance}" field="sugarStatus"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.guid}">
				<li class="fieldcontain">
					<span id="guid-label" class="property-label"><g:message code="sugarCase.guid.label" default="Guid" /></span>
					
						<span class="property-value" aria-labelledby="guid-label"><g:fieldValue bean="${sugarCaseInstance}" field="guid"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.sugarCaseNumber}">
				<li class="fieldcontain">
					<span id="sugarCaseNumber-label" class="property-label"><g:message code="sugarCase.sugarCaseNumber.label" default="Sugar Case Number" /></span>
					
						<span class="property-value" aria-labelledby="sugarCaseNumber-label"><g:fieldValue bean="${sugarCaseInstance}" field="sugarCaseNumber"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.name}">
				<li class="fieldcontain">
					<span id="name-label" class="property-label"><g:message code="sugarCase.name.label" default="Name" /></span>
					
						<span class="property-value" aria-labelledby="name-label"><g:fieldValue bean="${sugarCaseInstance}" field="name"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.sugarDateCreated}">
				<li class="fieldcontain">
					<span id="sugarDateCreated-label" class="property-label"><g:message code="sugarCase.sugarDateCreated.label" default="Sugar Date Created" /></span>
					
						<span class="property-value" aria-labelledby="sugarDateCreated-label"><g:fieldValue bean="${sugarCaseInstance}" field="sugarDateCreated"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.type}">
				<li class="fieldcontain">
					<span id="type-label" class="property-label"><g:message code="sugarCase.type.label" default="Type" /></span>
					
						<span class="property-value" aria-labelledby="type-label"><g:link controller="type" action="show" id="${sugarCaseInstance?.type?.id}">${sugarCaseInstance?.type?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.sugarAssignedTo}">
				<li class="fieldcontain">
					<span id="sugarAssignedTo-label" class="property-label"><g:message code="sugarCase.sugarAssignedTo.label" default="Sugar Assigned To" /></span>
					
						<span class="property-value" aria-labelledby="sugarAssignedTo-label"><g:fieldValue bean="${sugarCaseInstance}" field="sugarAssignedTo"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.accountGuid}">
				<li class="fieldcontain">
					<span id="accountGuid-label" class="property-label"><g:message code="sugarCase.accountGuid.label" default="Account Guid" /></span>
					
						<span class="property-value" aria-labelledby="accountGuid-label"><g:fieldValue bean="${sugarCaseInstance}" field="accountGuid"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.accountName}">
				<li class="fieldcontain">
					<span id="accountName-label" class="property-label"><g:message code="sugarCase.accountName.label" default="Account Name" /></span>
					
						<span class="property-value" aria-labelledby="accountName-label"><g:fieldValue bean="${sugarCaseInstance}" field="accountName"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.devTime}">
				<li class="fieldcontain">
					<span id="devTime-label" class="property-label"><g:message code="sugarCase.devTime.label" default="Dev Time" /></span>
					
						<span class="property-value" aria-labelledby="devTime-label"><g:fieldValue bean="${sugarCaseInstance}" field="devTime"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.projectStatus}">
				<li class="fieldcontain">
					<span id="projectStatus-label" class="property-label"><g:message code="sugarCase.projectStatus.label" default="Project Status" /></span>
					
						<span class="property-value" aria-labelledby="projectStatus-label"><g:link controller="projectStatus" action="show" id="${sugarCaseInstance?.projectStatus?.id}">${sugarCaseInstance?.projectStatus?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.fixStatus}">
				<li class="fieldcontain">
					<span id="fixStatus-label" class="property-label"><g:message code="sugarCase.fixStatus.label" default="Fix Status" /></span>
					
						<span class="property-value" aria-labelledby="fixStatus-label"><g:link controller="fixStatus" action="show" id="${sugarCaseInstance?.fixStatus?.id}">${sugarCaseInstance?.fixStatus?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.sugarDateMod}">
				<li class="fieldcontain">
					<span id="sugarDateMod-label" class="property-label"><g:message code="sugarCase.sugarDateMod.label" default="Sugar Date Mod" /></span>
					
						<span class="property-value" aria-labelledby="sugarDateMod-label"><g:fieldValue bean="${sugarCaseInstance}" field="sugarDateMod"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.costs}">
				<li class="fieldcontain">
					<span id="costs-label" class="property-label"><g:message code="sugarCase.costs.label" default="Costs" /></span>
					
						<g:each in="${sugarCaseInstance.costs}" var="c">
						<span class="property-value" aria-labelledby="costs-label"><g:link controller="cost" action="show" id="${c.id}">${c?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.dateCreated}">
				<li class="fieldcontain">
					<span id="dateCreated-label" class="property-label"><g:message code="sugarCase.dateCreated.label" default="Date Created" /></span>
					
						<span class="property-value" aria-labelledby="dateCreated-label"><g:formatDate date="${sugarCaseInstance?.dateCreated}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.fixes}">
				<li class="fieldcontain">
					<span id="fixes-label" class="property-label"><g:message code="sugarCase.fixes.label" default="Fixes" /></span>
					
						<g:each in="${sugarCaseInstance.fixes}" var="f">
						<span class="property-value" aria-labelledby="fixes-label"><g:link controller="projectFix" action="show" id="${f.id}">${f?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.ignoreUpdate}">
				<li class="fieldcontain">
					<span id="ignoreUpdate-label" class="property-label"><g:message code="sugarCase.ignoreUpdate.label" default="Ignore Update" /></span>
					
						<span class="property-value" aria-labelledby="ignoreUpdate-label"><g:formatBoolean boolean="${sugarCaseInstance?.ignoreUpdate}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.lastUpdated}">
				<li class="fieldcontain">
					<span id="lastUpdated-label" class="property-label"><g:message code="sugarCase.lastUpdated.label" default="Last Updated" /></span>
					
						<span class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate date="${sugarCaseInstance?.lastUpdated}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.tags}">
				<li class="fieldcontain">
					<span id="tags-label" class="property-label"><g:message code="sugarCase.tags.label" default="Tags" /></span>
					
						<g:each in="${sugarCaseInstance.tags}" var="t">
						<span class="property-value" aria-labelledby="tags-label"><g:link controller="tag" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${sugarCaseInstance?.updateElements}">
				<li class="fieldcontain">
					<span id="updateElements-label" class="property-label"><g:message code="sugarCase.updateElements.label" default="Update Elements" /></span>
					
						<g:each in="${sugarCaseInstance.updateElements}" var="u">
						<span class="property-value" aria-labelledby="updateElements-label"><g:link controller="updateElements" action="show" id="${u.id}">${u?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${sugarCaseInstance?.id}" />
					<g:link class="edit" action="edit" id="${sugarCaseInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
